<?php

class auditoriasEvaluacionModel extends Model3
{
    public function __construct() {
        parent::__construct('adic.eval_bd');
    }
    
    public function getEval($id){
        return $this->row("
            SELECT *
            FROM adic.eval_head
            WHERE
                adic.eval_head.folio = $id
        ");
    }
    
    public function updateEval($id){
        $this->_db->executeQuery("
            UPDATE adic.eval_head SET fecha = '" . date('Y-m-d G:i:s') . "', status = 1 WHERE id = $id
        ");
    }
}

?>